package code.rocky.chapter03;

// 建议36：使用构造代码块精炼程序
public class Suggest36 {

    {
        System.out.println("执行构造代码块");
    }

    public Suggest36() {
        System.out.println("执行无参构造");
    }

    public Suggest36(String str) {
        System.out.println("执行有参构造");
    }

    public static void main(String[] args) {
        Suggest36 suggest36 = new Suggest36();
    }
}
